import requests

url = "http://localhost:8000/v1/chat/completions"
payload = {
    "prompt": "输出整首琵琶行",
    "temperature": 0.7,
    "max_tokens": 512
}

response = requests.post(url, json=payload).json()
print(response["response"])